package com.maserb.monitor.service.jwQuestion;

import com.maserb.monitor.entity.jwQuestion.JwQuestionOptionEntity;
import com.maserb.monitor.entity.jwQuestion.JwQuestionOptionEntity;
import com.maserb.monitor.repository.JwQuestion.JwQuestionOptionRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface JwQuestionOptionService extends JpaSpecificationService<JwQuestionOptionRepository, JwQuestionOptionRepository, JwQuestionOptionEntity, String> {
    Page<JwQuestionOptionEntity> findAllByParentId(String parentId, Pageable pageable);

    void save(JwQuestionOptionEntity entity, String parentId);
}